﻿// Decompiled with JetBrains decompiler
// Type: DnProcessSimulateCommands.IsoParametricCurves.IsoParametricCurvesDialog
// Assembly: DnProcessSimulateCommands, Version=2402.0.0.890, Culture=neutral, PublicKeyToken=null
// MVID: A885D881-AEDF-447E-852A-6F13102E089C
// Assembly location: C:\Program Files\Tecnomatix_2402\eMPower\DotNetCommands\DnProcessSimulateCommands.dll

using System;
using System.Collections.ObjectModel;
using System.ComponentModel;
using System.Drawing;
using System.Resources;
using System.Windows.Forms;
using Tecnomatix.Engineering;
using Tecnomatix.Engineering.Ui;


namespace DnProcessSimulateCommands.IsoParametricCurves;

public class IsoParametricCurvesDialog : TxForm
{
  public const string REGISTRY_DISTANCE_BETWEEN_CURVES_VALUE = "DistanceBetweenCurves";
  public const string REGISTRY_DISTANCE_OF_FIRST_CURVE = "DistanceOfFirstCurve";
  public const string REGISTRY_PREFIX_NAME = "NamePrefix";
  private IsoParametricCurveCreator m_curveCreator;
  private IsoParemtricCurveData m_isoPrametricCurvesData;
  private bool markInvalidControls;
  private double defaultDistancesVal_mm = 1.0;
  private double defaultDistancesVal_cm = 1.0;
  private double defaultDistancesVal_m = 1.0;
  private double defaultDistancesVal_inch = 2.54;
  private double defaultDistancesVal_ft = 3.048;
  private bool m_OkPresses;
  private bool m_cancelPressed;
  private IContainer components;
  private Label label1;
  private Label m_distanceOfFirstCurveLabel;
  private Label m_distanceBetweenCurvesLabel;
  private Label m_numberOfCurvesLabel;
  private Label m_distanceOfFirstCurveLinearUnitTextBox;
  private Label m_distanceBeteenCurvedLinearUnitTextBox;
  private Button m_cancelButton;
  private Button m_OkButton;
  private Label label7;
  private RadioButton m_maximalCurvesRadioButton;
  private RadioButton m_lessNumberOfCurvesRadioButton;
  private RadioButton m_UMaxRadioButton;
  private RadioButton m_UminRadioButton;
  private RadioButton m_VplusRadioButton;
  private RadioButton m_VminRadioButton;
  private Label label8;
  private TextBox m_scopeTextBox;
  private Label m_namePrefixLabel;
  private TextBox m_namePrefixTextBox;
  private TxObjEditBoxCtrl m_faceEditBox;
  private Button m_applyButton;
  private Panel panel1;
  private TxNumericEditBoxCtrl m_distanceOfFirstCurveNumericUpDown;
  private TxNumericEditBoxCtrl m_distanceBetweenCurvesNumericUpDown;
  private TxNumericEditBoxCtrl m_numberOfCurvesNumericUpDown;

  public IsoParametricCurvesDialog()
  {
    this.InitializeComponent();
    this.Init();
  }

  private void Init()
  {
    this.m_OkPresses = false;
    this.m_cancelPressed = false;
    this.m_isoPrametricCurvesData = new IsoParemtricCurveData();
    this.m_curveCreator = new IsoParametricCurveCreator(this.m_isoPrametricCurvesData);
    this.m_faceEditBox.PickLevel = (TxPickLevel) 6;
    this.m_faceEditBox.ListenToPick = true;
    this.m_faceEditBox.IgnorPickOfTransientObjects = false;
    TxObjectList allItems = TxApplication.ActiveSelection.GetAllItems();
    if (((Collection<ITxObject>) allItems).Count > 0)
      this.m_isoPrametricCurvesData.Scope = ((Collection<ITxObject>) allItems)[0] as ITxGeometryCreation;
    this.m_scopeTextBox.Text = ((ITxObject) this.m_isoPrametricCurvesData.Scope).Name;
    this.InitFaceControl();
    this.InitNumericUpDownControls();
    this.SetDefaultValues();
    this.RestoreValueFromRegistry();
    this.m_isoPrametricCurvesData.DistanceBetweenCurvesByUnitStr = ((Control) this.m_distanceBetweenCurvesNumericUpDown).Text;
    this.m_isoPrametricCurvesData.DistanceFromStartingPointByUnitStr = ((Control) this.m_distanceOfFirstCurveNumericUpDown).Text;
    this.ChangeControlsDependedOnFaceEnableMode(false);
  }

  private void InitNumericUpDownControls()
  {
    double defaultAndMinDistances = this.CalculateDefaultAndMinDistances();
    this.m_distanceBetweenCurvesNumericUpDown.LowerBound = defaultAndMinDistances;
    this.m_distanceOfFirstCurveNumericUpDown.LowerBound = defaultAndMinDistances;
    this.m_numberOfCurvesNumericUpDown.LowerBound = 1.0;
    string linearUnitName = TxApplication.Options.Units.LinearUnitName;
    this.m_distanceOfFirstCurveLinearUnitTextBox.Text = linearUnitName;
    this.m_distanceBeteenCurvedLinearUnitTextBox.Text = linearUnitName;
  }

  private double CalculateDefaultAndMinDistances()
  {
    string linearUnitName = TxApplication.Options.Units.LinearUnitName;
    double defaultAndMinDistances = 0.0;
    switch (linearUnitName)
    {
      case "mm":
        defaultAndMinDistances = this.defaultDistancesVal_mm;
        break;
      case "cm":
        defaultAndMinDistances = this.defaultDistancesVal_cm;
        break;
      case "m":
        defaultAndMinDistances = this.defaultDistancesVal_m;
        break;
      case "inch":
        defaultAndMinDistances = this.defaultDistancesVal_inch;
        break;
      case "ft":
        defaultAndMinDistances = this.defaultDistancesVal_ft;
        break;
    }
    return defaultAndMinDistances;
  }

  private void fillDistancesNumericUpDownWithDefault()
  {
  }

  private string CheckIfBloclAlreadyExistsUnderComponent()
  {
    ITxComponent scope = (ITxComponent) (this.m_isoPrametricCurvesData.Scope as TxComponent);
    return "";
  }

  private void InitFaceControl()
  {
    this.m_faceEditBox.ValidatorType = (TxValidatorType) 26;
    this.m_faceEditBox.SetValidator((ITxValidator) new CApIsoParametricCurveFaceValidator());
    this.m_faceEditBox.KeepFaceEmphasizedWhenControlIsNotFocused = true;
    this.m_faceEditBox.Focus();
  }

  private void RestoreValueFromRegistry()
  {
    object obj1 = (object) null;
    object obj2 = (object) null;
    object obj3 = (object) null;
    TxFormSettings.RestoreFormValue((Form) this, "DistanceBetweenCurves", ref obj1);
    TxFormSettings.RestoreFormValue((Form) this, "DistanceOfFirstCurve", ref obj2);
    TxFormSettings.RestoreFormValue((Form) this, "NamePrefix", ref obj3);
    if (obj1 != null)
    {
      double result;
      if (double.TryParse(obj1.ToString(), out result))
      {
        this.m_isoPrametricCurvesData.DistanceBetweenCurves = result;
        this.m_distanceBetweenCurvesNumericUpDown.UpperBound = result;
        this.m_distanceBetweenCurvesNumericUpDown.Value = result;
      }
    }
    else
    {
      double defaultAndMinDistances = this.CalculateDefaultAndMinDistances();
      this.m_isoPrametricCurvesData.DistanceBetweenCurves = defaultAndMinDistances;
      this.m_distanceBetweenCurvesNumericUpDown.Value = defaultAndMinDistances;
    }
    if (obj2 != null)
    {
      double result;
      if (double.TryParse(obj2.ToString(), out result))
      {
        this.m_isoPrametricCurvesData.DistanceFromStartingPoint = result;
        this.m_distanceOfFirstCurveNumericUpDown.UpperBound = result;
        this.m_distanceOfFirstCurveNumericUpDown.Value = result;
      }
    }
    else
    {
      double defaultAndMinDistances = this.CalculateDefaultAndMinDistances();
      this.m_isoPrametricCurvesData.DistanceFromStartingPoint = defaultAndMinDistances;
      this.m_distanceOfFirstCurveNumericUpDown.Value = defaultAndMinDistances;
    }
    string str = obj3 == null ? this.GetStringFromResourceManager("DEFAULT_NAME_PREFIX") : obj3.ToString();
    this.m_isoPrametricCurvesData.NamePrefix = str;
    this.m_namePrefixTextBox.Text = str;
  }

  private void CallPreviewAndSetMaxValues(
    bool ShouldvalidateDistance,
    bool recreateLeadingCurveAndManipulator)
  {
    try
    {
      if (this.m_OkPresses || this.m_cancelPressed)
        return;
      this.m_curveCreator.Preview(recreateLeadingCurveAndManipulator, false);
      if (ShouldvalidateDistance)
      {
        this.SetAndValidateSpinCtrl(this.m_distanceBetweenCurvesNumericUpDown, this.m_isoPrametricCurvesData.LeadingCurveLength);
        this.SetAndValidateSpinCtrl(this.m_distanceOfFirstCurveNumericUpDown, this.m_isoPrametricCurvesData.LeadingCurveLength);
      }
      if (this.m_maximalCurvesRadioButton.Checked)
      {
        this.m_isoPrametricCurvesData.NumberOfCurves = this.m_isoPrametricCurvesData.MaxNumberCurves;
        this.ValidateNumericUpDownControl(this.m_numberOfCurvesNumericUpDown, this.m_numberOfCurvesNumericUpDown.Value);
      }
      else if (this.AreDistanceControlsValid())
        this.SetAndValidateSpinCtrl(this.m_numberOfCurvesNumericUpDown, (double) this.m_isoPrametricCurvesData.MaxNumberCurves);
      else
        this.InvalidateNumericUPDownControl(this.m_numberOfCurvesNumericUpDown);
      if (this.AreAllControlsValid())
      {
        this.m_curveCreator.Preview(false, true);
        this.EnableOkAndApplyButtons(true);
      }
      else
        this.ControlsNotValid();
      if (!this.IsMaximumValid())
        return;
      this.m_maximalCurvesRadioButton.Text = $"{this.GetStringFromResourceManager("ISO_PRAMETRIC_CURVES_MAXIMUM")} ({this.m_isoPrametricCurvesData.MaxNumberCurves.ToString()})";
    }
    catch
    {
      this.PopErrorMessage();
      this.m_curveCreator.ClearPreview(true, true);
      this.EnableOkAndApplyButtons(false);
    }
  }

  private string GetStringFromResourceManager(string resource)
  {
    return new ResourceManager("DnProcessSimulateCommands.StringTable", ((object) this).GetType().Assembly).GetString(resource);
  }

  private void PopErrorMessage()
  {
    ResourceManager resourceManager = new ResourceManager("DnProcessSimulateCommands.StringTable", ((object) this).GetType().Assembly);
    string str = resourceManager.GetString("ISOPARAMETRIC_CURVES_NAME");
    int num = (int) TxMessageBox.Show(resourceManager.GetString("ISOPARAMETRIC_CURVES_CREATING_CURVES_ERROR_MSG"), str, MessageBoxButtons.OK, MessageBoxIcon.Hand);
  }

  private void CancelButtonClicked(object sender, EventArgs e)
  {
    this.m_cancelPressed = true;
    ((Form) this).Close();
  }

  private void m_OkButton_Click(object sender, EventArgs e)
  {
    this.UpdateDistancesDataStrings();
    this.m_OkPresses = true;
    this.m_curveCreator.Persist(true);
    this.StoreRegistryValues();
    ((Form) this).Close();
  }

  private void m_applyButton_Click(object sender, EventArgs e)
  {
    this.UpdateDistancesDataStrings();
    this.m_curveCreator.Persist(false);
    this.StoreRegistryValues();
    this.EnableOkAndApplyButtons(false);
  }

  private void m_faceEditBox_Picked(object sender, TxObjEditBoxCtrl_PickedEventArgs args)
  {
    if (args.Object is ITxExactGeometryFace exactGeometryFace && args.IsValidObjectPicked)
    {
      this.ChangeControlsDependedOnFaceEnableMode(true);
      this.m_isoPrametricCurvesData.Face = exactGeometryFace;
      this.SetDefaultValues();
      this.markInvalidControls = true;
      this.CallPreviewAndSetMaxValues(true, true);
      this.m_UMaxRadioButton.Focus();
    }
    else
    {
      this.ChangeControlsDependedOnFaceEnableMode(false);
      this.m_curveCreator.ClearPreview(true, true);
      this.markInvalidControls = false;
      this.EnableOkAndApplyButtons(false);
    }
  }

  private void m_UMaxRadioButton_CheckedChanged(object sender, EventArgs e)
  {
    if (!this.m_UMaxRadioButton.Checked)
      return;
    this.m_isoPrametricCurvesData.SelectedDirection = FaceDirection.InUDirectionMax;
    this.CallPreviewAndSetMaxValues(true, true);
  }

  private void m_UminRadioButton_CheckedChanged(object sender, EventArgs e)
  {
    if (!this.m_UminRadioButton.Checked)
      return;
    this.m_isoPrametricCurvesData.SelectedDirection = FaceDirection.InUDirectionMin;
    this.CallPreviewAndSetMaxValues(true, true);
  }

  private void m_VplusRadioButton_CheckedChanged(object sender, EventArgs e)
  {
    if (!this.m_VplusRadioButton.Checked)
      return;
    this.m_isoPrametricCurvesData.SelectedDirection = FaceDirection.InVDirectionMax;
    this.CallPreviewAndSetMaxValues(true, true);
  }

  private void m_VminRadioButton_CheckedChanged(object sender, EventArgs e)
  {
    if (!this.m_VminRadioButton.Checked)
      return;
    this.m_isoPrametricCurvesData.SelectedDirection = FaceDirection.InVDirectionMin;
    this.CallPreviewAndSetMaxValues(true, true);
  }

  private void m_distanceOfFirstCurveNumericUpDown_ValueChanged(object sender, EventArgs e)
  {
    double num = this.m_distanceOfFirstCurveNumericUpDown.Value;
    if (this.m_isoPrametricCurvesData.DistanceFromStartingPoint == num)
      return;
    this.m_isoPrametricCurvesData.DistanceFromStartingPoint = num;
    this.CallPreviewAndSetMaxValues(true, false);
  }

  private void m_distanceBetweenCurvesNumericUpDown_ValueChanged(object sender, EventArgs e)
  {
    double num = this.m_distanceBetweenCurvesNumericUpDown.Value;
    if (this.m_isoPrametricCurvesData.DistanceBetweenCurves == num)
      return;
    this.m_isoPrametricCurvesData.DistanceBetweenCurves = num;
    this.CallPreviewAndSetMaxValues(true, false);
  }

  private void m_numberOfCurvesNumericUpDown_ValueChanged(object sender, EventArgs e)
  {
    int num = (int) this.m_numberOfCurvesNumericUpDown.Value;
    if (this.m_isoPrametricCurvesData.NumberOfCurves == num)
      return;
    this.m_isoPrametricCurvesData.NumberOfCurves = num;
    this.CallPreviewAndSetMaxValues(false, false);
  }

  private void m_maximalCurvesRadioButton_CheckedChanged(object sender, EventArgs e)
  {
    if (!this.m_maximalCurvesRadioButton.Checked)
      return;
    int maxNumberCurves = this.m_isoPrametricCurvesData.MaxNumberCurves;
    if (this.m_isoPrametricCurvesData.NumberOfCurves != maxNumberCurves)
    {
      this.m_isoPrametricCurvesData.NumberOfCurves = maxNumberCurves;
      this.CallPreviewAndSetMaxValues(false, false);
    }
    this.m_numberOfCurvesNumericUpDown.Enabled = false;
  }

  private void m_lessNumberOfCurvesRadioButton_CheckedChanged(object sender, EventArgs e)
  {
    if (!this.m_lessNumberOfCurvesRadioButton.Checked)
      return;
    this.m_numberOfCurvesNumericUpDown.Enabled = true;
    int num = (int) this.m_numberOfCurvesNumericUpDown.Value;
    if (this.m_isoPrametricCurvesData.NumberOfCurves == num)
      return;
    this.m_isoPrametricCurvesData.NumberOfCurves = num;
    this.CallPreviewAndSetMaxValues(false, false);
  }

  private void InvalidateNumericUPDownControl(TxNumericEditBoxCtrl control)
  {
    if (this.markInvalidControls)
    {
      ((Control) control).BackColor = TxStatusColor.Background("Error");
      ((Control) control).ForeColor = TxStatusColor.Text("Error");
    }
    this.m_curveCreator.ClearPreview(true, false);
  }

  private void InvalidateNumericUPDownControl(NumericUpDown control)
  {
    if (this.markInvalidControls)
    {
      control.BackColor = TxStatusColor.Background("Error");
      control.ForeColor = TxStatusColor.Text("Error");
    }
    this.m_curveCreator.ClearPreview(true, false);
  }

  private void ValidateNumericUpDownControl(TxNumericEditBoxCtrl control, double maxValue)
  {
    if (((Control) control).BackColor == TxStatusColor.Background("Error"))
    {
      ((Control) control).BackColor = SystemColors.Window;
      ((Control) control).ForeColor = SystemColors.WindowText;
    }
    control.UpperBound = maxValue;
  }

  private void SetAndValidateSpinCtrl(TxNumericEditBoxCtrl control, double maxValue)
  {
    if (control.Value > maxValue)
      this.InvalidateNumericUPDownControl(control);
    else
      this.ValidateNumericUpDownControl(control, maxValue);
  }

  private void IsoParametricCurvesDialog_Load(object sender, EventArgs e)
  {
    this.m_faceEditBox.Select();
    this.EnableOkAndApplyButtons(false);
    this.m_lessNumberOfCurvesRadioButton.Checked = true;
    this.m_UMaxRadioButton.Checked = true;
  }

  private bool IsNumberOfCurvesValid()
  {
    return this.m_numberOfCurvesNumericUpDown.Value <= (double) this.m_isoPrametricCurvesData.MaxNumberCurves;
  }

  private bool IsDistanceBetweenCurvesValid()
  {
    return this.m_distanceBetweenCurvesNumericUpDown.Value <= this.m_isoPrametricCurvesData.LeadingCurveLength;
  }

  private bool IsDistanceOfFirstValid()
  {
    return this.m_distanceOfFirstCurveNumericUpDown.Value <= this.m_isoPrametricCurvesData.LeadingCurveLength;
  }

  private bool AreAllControlsValid()
  {
    return this.IsNumberOfCurvesValid() && this.IsDistanceBetweenCurvesValid() && this.IsDistanceOfFirstValid();
  }

  private bool AreDistanceControlsValid()
  {
    return this.IsDistanceBetweenCurvesValid() && this.IsDistanceOfFirstValid();
  }

  private bool IsMaximumValid()
  {
    return this.IsDistanceBetweenCurvesValid() && this.IsDistanceOfFirstValid() && !((Control) this.m_faceEditBox).Text.Equals("");
  }

  private void UpdateDistancesDataStrings()
  {
    this.m_isoPrametricCurvesData.DistanceFromStartingPointByUnitStr = ((Control) this.m_distanceOfFirstCurveNumericUpDown).Text;
    this.m_isoPrametricCurvesData.DistanceBetweenCurvesByUnitStr = ((Control) this.m_distanceBetweenCurvesNumericUpDown).Text;
  }

  private void ControlsNotValid()
  {
    this.EnableOkAndApplyButtons(false);
    this.m_curveCreator.ClearPreview(true, false);
    this.m_maximalCurvesRadioButton.Text = this.GetStringFromResourceManager("ISO_PRAMETRIC_CURVES_MAXIMUM") + " (0)";
  }

  private void IsoParametricCurvesDialog_FormClosing(object sender, FormClosingEventArgs e)
  {
    this.m_curveCreator.ClearPreview(true, true);
  }

  private void m_namePrefixTextBox_TextChanged(object sender, EventArgs e)
  {
    this.EnableOkAndApplyButtons(true);
    this.m_isoPrametricCurvesData.NamePrefix = this.m_namePrefixTextBox.Text;
  }

  private void EnableOkAndApplyButtons(bool enable)
  {
    this.m_OkButton.Enabled = enable;
    this.m_applyButton.Enabled = enable;
  }

  private void SetDefaultValues()
  {
    this.m_numberOfCurvesNumericUpDown.Value = 1.0;
    this.m_isoPrametricCurvesData.NumberOfCurves = 1;
    this.m_lessNumberOfCurvesRadioButton.Checked = true;
    this.m_UMaxRadioButton.Checked = true;
  }

  private void StoreRegistryValues()
  {
    TxFormSettings.StoreFormValue((Form) this, "DistanceBetweenCurves", (object) this.m_isoPrametricCurvesData.DistanceBetweenCurves);
    TxFormSettings.StoreFormValue((Form) this, "DistanceOfFirstCurve", (object) this.m_isoPrametricCurvesData.DistanceFromStartingPoint);
    TxFormSettings.StoreFormValue((Form) this, "NamePrefix", (object) this.m_isoPrametricCurvesData.NamePrefix);
  }

  private void ForceMaxValue(TxNumericEditBoxCtrl control, double maxValue)
  {
    control.UpperBound = maxValue;
    ((Control) control).BackColor = SystemColors.Window;
    ((Control) control).ForeColor = SystemColors.WindowText;
    control.Value = maxValue;
  }

  private void ForceMaxValue(NumericUpDown control, Decimal maxValue)
  {
    control.Maximum = maxValue;
    control.BackColor = SystemColors.Window;
    control.ForeColor = SystemColors.WindowText;
    control.Value = maxValue;
  }

  private void ChangeControlsDependedOnFaceEnableMode(bool enableControls)
  {
    this.label7.Enabled = enableControls;
    this.m_UMaxRadioButton.Enabled = enableControls;
    this.m_UminRadioButton.Enabled = enableControls;
    this.m_VminRadioButton.Enabled = enableControls;
    this.m_VplusRadioButton.Enabled = enableControls;
    this.m_distanceOfFirstCurveLabel.Enabled = enableControls;
    this.m_distanceOfFirstCurveNumericUpDown.Enabled = enableControls;
    this.m_distanceOfFirstCurveLinearUnitTextBox.Enabled = enableControls;
    this.m_distanceBetweenCurvesLabel.Enabled = enableControls;
    this.m_distanceBetweenCurvesNumericUpDown.Enabled = enableControls;
    this.m_distanceBeteenCurvedLinearUnitTextBox.Enabled = enableControls;
    this.m_numberOfCurvesLabel.Enabled = enableControls;
    this.m_maximalCurvesRadioButton.Enabled = enableControls;
    this.m_lessNumberOfCurvesRadioButton.Enabled = enableControls;
    this.m_numberOfCurvesNumericUpDown.Enabled = enableControls;
    this.m_namePrefixLabel.Enabled = enableControls;
    this.m_namePrefixTextBox.Enabled = enableControls;
  }

  protected virtual void Dispose(bool disposing)
  {
    if (disposing && this.components != null)
      this.components.Dispose();
    base.Dispose(disposing);
  }

  private void InitializeComponent()
  {
    ComponentResourceManager componentResourceManager = new ComponentResourceManager(typeof (IsoParametricCurvesDialog));
    this.label1 = new Label();
    this.m_distanceOfFirstCurveLabel = new Label();
    this.m_distanceBetweenCurvesLabel = new Label();
    this.m_numberOfCurvesLabel = new Label();
    this.m_distanceOfFirstCurveLinearUnitTextBox = new Label();
    this.m_distanceBeteenCurvedLinearUnitTextBox = new Label();
    this.m_cancelButton = new Button();
    this.m_OkButton = new Button();
    this.label7 = new Label();
    this.m_maximalCurvesRadioButton = new RadioButton();
    this.m_lessNumberOfCurvesRadioButton = new RadioButton();
    this.m_UMaxRadioButton = new RadioButton();
    this.m_UminRadioButton = new RadioButton();
    this.m_VplusRadioButton = new RadioButton();
    this.m_VminRadioButton = new RadioButton();
    this.label8 = new Label();
    this.m_scopeTextBox = new TextBox();
    this.m_namePrefixLabel = new Label();
    this.m_namePrefixTextBox = new TextBox();
    this.m_faceEditBox = new TxObjEditBoxCtrl();
    this.m_applyButton = new Button();
    this.panel1 = new Panel();
    this.m_distanceOfFirstCurveNumericUpDown = new TxNumericEditBoxCtrl();
    this.m_distanceBetweenCurvesNumericUpDown = new TxNumericEditBoxCtrl();
    this.m_numberOfCurvesNumericUpDown = new TxNumericEditBoxCtrl();
    this.panel1.SuspendLayout();
    ((Control) this).SuspendLayout();
    componentResourceManager.ApplyResources((object) this.label1, "label1");
    this.label1.Name = "label1";
    componentResourceManager.ApplyResources((object) this.m_distanceOfFirstCurveLabel, "m_distanceOfFirstCurveLabel");
    this.m_distanceOfFirstCurveLabel.Name = "m_distanceOfFirstCurveLabel";
    componentResourceManager.ApplyResources((object) this.m_distanceBetweenCurvesLabel, "m_distanceBetweenCurvesLabel");
    this.m_distanceBetweenCurvesLabel.Name = "m_distanceBetweenCurvesLabel";
    componentResourceManager.ApplyResources((object) this.m_numberOfCurvesLabel, "m_numberOfCurvesLabel");
    this.m_numberOfCurvesLabel.Name = "m_numberOfCurvesLabel";
    componentResourceManager.ApplyResources((object) this.m_distanceOfFirstCurveLinearUnitTextBox, "m_distanceOfFirstCurveLinearUnitTextBox");
    this.m_distanceOfFirstCurveLinearUnitTextBox.Name = "m_distanceOfFirstCurveLinearUnitTextBox";
    componentResourceManager.ApplyResources((object) this.m_distanceBeteenCurvedLinearUnitTextBox, "m_distanceBeteenCurvedLinearUnitTextBox");
    this.m_distanceBeteenCurvedLinearUnitTextBox.Name = "m_distanceBeteenCurvedLinearUnitTextBox";
    componentResourceManager.ApplyResources((object) this.m_cancelButton, "m_cancelButton");
    this.m_cancelButton.DialogResult = DialogResult.Cancel;
    this.m_cancelButton.Name = "m_cancelButton";
    this.m_cancelButton.UseVisualStyleBackColor = true;
    this.m_cancelButton.Click += new EventHandler(this.CancelButtonClicked);
    componentResourceManager.ApplyResources((object) this.m_OkButton, "m_OkButton");
    this.m_OkButton.Name = "m_OkButton";
    this.m_OkButton.UseVisualStyleBackColor = true;
    this.m_OkButton.Click += new EventHandler(this.m_OkButton_Click);
    componentResourceManager.ApplyResources((object) this.label7, "label7");
    this.label7.Name = "label7";
    componentResourceManager.ApplyResources((object) this.m_maximalCurvesRadioButton, "m_maximalCurvesRadioButton");
    this.m_maximalCurvesRadioButton.Name = "m_maximalCurvesRadioButton";
    this.m_maximalCurvesRadioButton.TabStop = true;
    this.m_maximalCurvesRadioButton.UseVisualStyleBackColor = true;
    this.m_maximalCurvesRadioButton.CheckedChanged += new EventHandler(this.m_maximalCurvesRadioButton_CheckedChanged);
    componentResourceManager.ApplyResources((object) this.m_lessNumberOfCurvesRadioButton, "m_lessNumberOfCurvesRadioButton");
    this.m_lessNumberOfCurvesRadioButton.Checked = true;
    this.m_lessNumberOfCurvesRadioButton.Name = "m_lessNumberOfCurvesRadioButton";
    this.m_lessNumberOfCurvesRadioButton.TabStop = true;
    this.m_lessNumberOfCurvesRadioButton.UseVisualStyleBackColor = true;
    this.m_lessNumberOfCurvesRadioButton.CheckedChanged += new EventHandler(this.m_lessNumberOfCurvesRadioButton_CheckedChanged);
    componentResourceManager.ApplyResources((object) this.m_UMaxRadioButton, "m_UMaxRadioButton");
    this.m_UMaxRadioButton.Name = "m_UMaxRadioButton";
    this.m_UMaxRadioButton.TabStop = true;
    this.m_UMaxRadioButton.UseVisualStyleBackColor = true;
    this.m_UMaxRadioButton.CheckedChanged += new EventHandler(this.m_UMaxRadioButton_CheckedChanged);
    componentResourceManager.ApplyResources((object) this.m_UminRadioButton, "m_UminRadioButton");
    this.m_UminRadioButton.Name = "m_UminRadioButton";
    this.m_UminRadioButton.TabStop = true;
    this.m_UminRadioButton.UseVisualStyleBackColor = true;
    this.m_UminRadioButton.CheckedChanged += new EventHandler(this.m_UminRadioButton_CheckedChanged);
    componentResourceManager.ApplyResources((object) this.m_VplusRadioButton, "m_VplusRadioButton");
    this.m_VplusRadioButton.Name = "m_VplusRadioButton";
    this.m_VplusRadioButton.TabStop = true;
    this.m_VplusRadioButton.UseVisualStyleBackColor = true;
    this.m_VplusRadioButton.CheckedChanged += new EventHandler(this.m_VplusRadioButton_CheckedChanged);
    componentResourceManager.ApplyResources((object) this.m_VminRadioButton, "m_VminRadioButton");
    this.m_VminRadioButton.Name = "m_VminRadioButton";
    this.m_VminRadioButton.TabStop = true;
    this.m_VminRadioButton.UseVisualStyleBackColor = true;
    this.m_VminRadioButton.CheckedChanged += new EventHandler(this.m_VminRadioButton_CheckedChanged);
    componentResourceManager.ApplyResources((object) this.label8, "label8");
    this.label8.Name = "label8";
    componentResourceManager.ApplyResources((object) this.m_scopeTextBox, "m_scopeTextBox");
    this.m_scopeTextBox.Name = "m_scopeTextBox";
    this.m_scopeTextBox.ReadOnly = true;
    this.m_scopeTextBox.TabStop = false;
    componentResourceManager.ApplyResources((object) this.m_namePrefixLabel, "m_namePrefixLabel");
    this.m_namePrefixLabel.Name = "m_namePrefixLabel";
    componentResourceManager.ApplyResources((object) this.m_namePrefixTextBox, "m_namePrefixTextBox");
    this.m_namePrefixTextBox.Name = "m_namePrefixTextBox";
    this.m_namePrefixTextBox.TextChanged += new EventHandler(this.m_namePrefixTextBox_TextChanged);
    this.m_faceEditBox.KeepFaceEmphasizedWhenControlIsNotFocused = true;
    this.m_faceEditBox.ListenToPick = false;
    componentResourceManager.ApplyResources((object) this.m_faceEditBox, "m_faceEditBox");
    ((Control) this.m_faceEditBox).Name = "m_faceEditBox";
    this.m_faceEditBox.Object = (ITxObject) null;
    this.m_faceEditBox.PickAndClear = false;
    this.m_faceEditBox.PickLevel = (TxPickLevel) 6;
    this.m_faceEditBox.PickOnly = true;
    this.m_faceEditBox.ReadOnly = false;
    this.m_faceEditBox.ValidatorType = (TxValidatorType) 1;
    this.m_faceEditBox.Picked += new TxObjEditBoxCtrl_PickedEventHandler(this.m_faceEditBox_Picked);
    componentResourceManager.ApplyResources((object) this.m_applyButton, "m_applyButton");
    this.m_applyButton.Name = "m_applyButton";
    this.m_applyButton.UseVisualStyleBackColor = true;
    this.m_applyButton.Click += new EventHandler(this.m_applyButton_Click);
    componentResourceManager.ApplyResources((object) this.panel1, "panel1");
    this.panel1.Controls.Add((Control) this.m_UminRadioButton);
    this.panel1.Controls.Add((Control) this.m_UMaxRadioButton);
    this.panel1.Controls.Add((Control) this.m_VplusRadioButton);
    this.panel1.Controls.Add((Control) this.m_VminRadioButton);
    this.panel1.Name = "panel1";
    this.panel1.TabStop = true;
    this.m_distanceOfFirstCurveNumericUpDown.BorderStyle = BorderStyle.Fixed3D;
    componentResourceManager.ApplyResources((object) this.m_distanceOfFirstCurveNumericUpDown, "m_distanceOfFirstCurveNumericUpDown");
    this.m_distanceOfFirstCurveNumericUpDown.LowerBound = -7.92281525142643E+18;
    ((Control) this.m_distanceOfFirstCurveNumericUpDown).Name = "m_distanceOfFirstCurveNumericUpDown";
    this.m_distanceOfFirstCurveNumericUpDown.ReadOnly = false;
    this.m_distanceOfFirstCurveNumericUpDown.StepSize = 1.0;
    this.m_distanceOfFirstCurveNumericUpDown.TextAlign = HorizontalAlignment.Left;
    this.m_distanceOfFirstCurveNumericUpDown.ThousandsSeparator = false;
    this.m_distanceOfFirstCurveNumericUpDown.UpperBound = 7.92281525142643E+18;
    this.m_distanceOfFirstCurveNumericUpDown.UseDecimalPlacesFromOption = true;
    this.m_distanceOfFirstCurveNumericUpDown.Value = 0.0;
    this.m_distanceOfFirstCurveNumericUpDown.ValueType = (TxNumericEditValueType) 0;
    this.m_distanceOfFirstCurveNumericUpDown.ValueChanged += new EventHandler(this.m_distanceOfFirstCurveNumericUpDown_ValueChanged);
    this.m_distanceBetweenCurvesNumericUpDown.BorderStyle = BorderStyle.Fixed3D;
    componentResourceManager.ApplyResources((object) this.m_distanceBetweenCurvesNumericUpDown, "m_distanceBetweenCurvesNumericUpDown");
    this.m_distanceBetweenCurvesNumericUpDown.LowerBound = -7.92281525142643E+18;
    ((Control) this.m_distanceBetweenCurvesNumericUpDown).Name = "m_distanceBetweenCurvesNumericUpDown";
    this.m_distanceBetweenCurvesNumericUpDown.ReadOnly = false;
    this.m_distanceBetweenCurvesNumericUpDown.StepSize = 1.0;
    this.m_distanceBetweenCurvesNumericUpDown.TextAlign = HorizontalAlignment.Left;
    this.m_distanceBetweenCurvesNumericUpDown.ThousandsSeparator = false;
    this.m_distanceBetweenCurvesNumericUpDown.UpperBound = 7.92281525142643E+18;
    this.m_distanceBetweenCurvesNumericUpDown.UseDecimalPlacesFromOption = true;
    this.m_distanceBetweenCurvesNumericUpDown.Value = 0.0;
    this.m_distanceBetweenCurvesNumericUpDown.ValueType = (TxNumericEditValueType) 0;
    this.m_distanceBetweenCurvesNumericUpDown.ValueChanged += new EventHandler(this.m_distanceBetweenCurvesNumericUpDown_ValueChanged);
    this.m_numberOfCurvesNumericUpDown.BorderStyle = BorderStyle.Fixed3D;
    componentResourceManager.ApplyResources((object) this.m_numberOfCurvesNumericUpDown, "m_numberOfCurvesNumericUpDown");
    this.m_numberOfCurvesNumericUpDown.LowerBound = 1.0;
    ((Control) this.m_numberOfCurvesNumericUpDown).Name = "m_numberOfCurvesNumericUpDown";
    this.m_numberOfCurvesNumericUpDown.ReadOnly = false;
    this.m_numberOfCurvesNumericUpDown.StepSize = 1.0;
    this.m_numberOfCurvesNumericUpDown.TextAlign = HorizontalAlignment.Left;
    this.m_numberOfCurvesNumericUpDown.ThousandsSeparator = false;
    this.m_numberOfCurvesNumericUpDown.UpperBound = 1.0;
    this.m_numberOfCurvesNumericUpDown.UseDecimalPlacesFromOption = true;
    this.m_numberOfCurvesNumericUpDown.Value = 1.0;
    this.m_numberOfCurvesNumericUpDown.ValueType = (TxNumericEditValueType) 3;
    this.m_numberOfCurvesNumericUpDown.ValueChanged += new EventHandler(this.m_numberOfCurvesNumericUpDown_ValueChanged);
    componentResourceManager.ApplyResources((object) this, "$this");
    ((ContainerControl) this).AutoScaleMode = AutoScaleMode.Font;
    ((Form) this).CancelButton = (IButtonControl) this.m_cancelButton;
    ((Control) this).Controls.Add((Control) this.m_numberOfCurvesNumericUpDown);
    ((Control) this).Controls.Add((Control) this.m_distanceBetweenCurvesNumericUpDown);
    ((Control) this).Controls.Add((Control) this.m_distanceOfFirstCurveNumericUpDown);
    ((Control) this).Controls.Add((Control) this.panel1);
    ((Control) this).Controls.Add((Control) this.m_applyButton);
    ((Control) this).Controls.Add((Control) this.m_faceEditBox);
    ((Control) this).Controls.Add((Control) this.m_lessNumberOfCurvesRadioButton);
    ((Control) this).Controls.Add((Control) this.m_maximalCurvesRadioButton);
    ((Control) this).Controls.Add((Control) this.m_OkButton);
    ((Control) this).Controls.Add((Control) this.m_cancelButton);
    ((Control) this).Controls.Add((Control) this.m_distanceBeteenCurvedLinearUnitTextBox);
    ((Control) this).Controls.Add((Control) this.m_distanceOfFirstCurveLinearUnitTextBox);
    ((Control) this).Controls.Add((Control) this.m_scopeTextBox);
    ((Control) this).Controls.Add((Control) this.m_namePrefixTextBox);
    ((Control) this).Controls.Add((Control) this.m_numberOfCurvesLabel);
    ((Control) this).Controls.Add((Control) this.m_distanceBetweenCurvesLabel);
    ((Control) this).Controls.Add((Control) this.label7);
    ((Control) this).Controls.Add((Control) this.m_distanceOfFirstCurveLabel);
    ((Control) this).Controls.Add((Control) this.m_namePrefixLabel);
    ((Control) this).Controls.Add((Control) this.label8);
    ((Control) this).Controls.Add((Control) this.label1);
    ((Form) this).FormBorderStyle = FormBorderStyle.FixedDialog;
    ((Form) this).MaximizeBox = false;
    ((Form) this).MinimizeBox = false;
    ((Control) this).Name = nameof (IsoParametricCurvesDialog);
    this.ShouldCloseOnDocumentUnloading = true;
    ((Form) this).ShowIcon = false;
    ((Form) this).FormClosing += new FormClosingEventHandler(this.IsoParametricCurvesDialog_FormClosing);
    ((Form) this).Load += new EventHandler(this.IsoParametricCurvesDialog_Load);
    this.panel1.ResumeLayout(false);
    ((Control) this).ResumeLayout(false);
    ((Control) this).PerformLayout();
  }
}
